# _*_ coding : utf-8 _*_
# @Time: 2024/9/18 14:13
# @Author : 石文帅	
# @File : testcase01通报报表.py
# @Project : python_slfh


from server.slfhWorkbench import *
from selenium.webdriver.chrome.service import Service
from xpathDictionary.slfhXpath import *


class test(unittest.TestCase):

    @classmethod
    def setUpClass(cls):
        cls.wd = webdriver.Chrome(service=Service(driver_path))
        cls.wd.get(url_path)
        cls.wd.maximize_window()
        login(cls.wd)

    @classmethod
    def tearDownClass(cls):
        cls.wd.quit()
        log.info('----------------------------------------------------------')

    def testcase01通报报表(self):
        """
        通报报表
        :return:
        """
        log.info('test1_通报报表')
        locate_click(self.wd, report['通报报表'])
        locate_click(self.wd, report['通报筛选-日'])
        locate_input(self.wd, report['通报筛选-时间'], '2024-09-13')
        locate_click(self.wd, report['通报筛选-日'])

        actualise = ['23', '合计', '49', '49', '100', '293', '6.1', '89.8']

        assert_list_elements(self.wd, report['合计栏'], actualise)


